package tools;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import entitybean.oc_property_pla.EntityBean_Oc_Property_Pla;

public class InterfacePropertyPlaList {
	public List<EntityBean_Oc_Property_Pla> ViewOc_News(ResultSet rs)
	{
		
		List<EntityBean_Oc_Property_Pla>list =new ArrayList<EntityBean_Oc_Property_Pla>();
		try {
			Integer i=1;
			while(rs.next())
			{
				
				EntityBean_Oc_Property_Pla viewoc_news=new EntityBean_Oc_Property_Pla();
				viewoc_news.setKind_id(rs.getInt("kind_id"));
				viewoc_news.setProperty_name(rs.getString("property_name"));
				viewoc_news.setId(Integer.valueOf(rs.getString("ID")));
				list.add(viewoc_news);
				i=i+1;
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
		
	}
}
